package com.ly.mpayment.persist.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * UpProductLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="upproductlog"

)

public class UpProductLog  implements java.io.Serializable {


    // Fields

     private String uploguuid;
     private UpShopProduct upShopPro;
     private User userLog;
     private Date createtime;
     private String remark;
     private String operationtarget;


    // Constructors

    /** default constructor */
    public UpProductLog() {
    }


    /** full constructor */
    public UpProductLog(UpShopProduct upShopPro, User user, Date createtime, String remark, String operationtarget) {
        this.upShopPro = upShopPro;
        this.userLog = user;
        this.createtime = createtime;
        this.remark = remark;
        this.operationtarget = operationtarget;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="uploguuid", unique=true, nullable=false, length=40)

    public String getUploguuid() {
        return this.uploguuid;
    }

    public void setUploguuid(String uploguuid) {
        this.uploguuid = uploguuid;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="upprouuid")

    public UpShopProduct getUpShopPro() {
        return this.upShopPro;
    }

    public void setUpShopPro(UpShopProduct upShopPro) {
        this.upShopPro = upShopPro;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUserLog() {
        return this.userLog;
    }

    public void setUserLog(User user) {
        this.userLog = user;
    }

    @Column(name="createtime", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name="operationtarget", length=40)

    public String getOperationtarget() {
        return this.operationtarget;
    }

    public void setOperationtarget(String operationtarget) {
        this.operationtarget = operationtarget;
    }









}
